package com.item.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.item.mapper.PictureMapper;
import com.item.pojo.Picture;
import com.item.service.PictureService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class PictureServiceImpl extends ServiceImpl<PictureMapper, Picture> implements PictureService {
    @Override
    public int addPicture(Picture picture) {
        return super.baseMapper.addPicture(picture);
    }

    @Override
    public int updatePicture(Picture picture) {
        return super.baseMapper.updatePicture(picture);
    }
}
